/**
  ******************************************************************************
  * Copyright(c) 2018-2023 WUHAN LEADOR All rights reserved. 
  * - Filename:    
  * - Author:    Vincent
  * - Version:   V1.0.0
  * - Date:      2019/4/16
  * - Brief:   
  * - FunctionList:
  ******************************************************************************
  * History:
  *   
  *
  * 
  ******************************************************************************
*/
#ifndef __EVENT_POOL_H__
#define __EVENT_POOL_H__
/* Includes ------------------------------------------------------------------*/
#include <sys/epoll.h>


/* prama define discrible -----------------------------------------------------*/
#define MAXEVENTS 1024

/* strcuct  discrible --------------------------------------------------------*/

/* prama  discrible ---------------------------------------------------------*/


/* private fucntion  declaration --------------------------------------------*/
extern struct epoll_event *events;

/* private fucntion  discrible -----------------------------------------------*/
int  ep_create(int flags);
void ep_add(int epfd, int fd, struct epoll_event *event);
void ep_mod(int epfd, int fd, struct epoll_event *event);
void ep_del(int epfd, int fd, struct epoll_event *event);
int  ep_wait(int epfd, struct epoll_event *events, int maxevents, int timeout);

#endif /*__EVENT_POOL_H__*/
/************************ (.h) END OF FILE ************************************/
